package com.bianguo.android.tencentpushdemo.adapters;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.marshalchen.ultimaterecyclerview.UltimateRecyclerviewViewHolder;
import com.marshalchen.ultimaterecyclerview.UltimateViewAdapter;
import com.marshalchen.ultimaterecyclerview.expanx.Util.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/4/12.
 */

public abstract class BaseRecyclerAdapter<T> extends UltimateViewAdapter<BaseViewHolder>{

    protected Context mContext;
    protected List<T> list;
    protected LayoutInflater inflater;

    public BaseRecyclerAdapter(Context mContext, List<T> list){
        this.mContext = mContext;
        this.list = list;
        inflater = LayoutInflater.from(mContext);
    }

    @Override
    public BaseViewHolder newFooterHolder(View view) {
        return null;
    }

    @Override
    public BaseViewHolder newHeaderHolder(View view) {
        return null;
    }

    @Override
    public BaseViewHolder onCreateViewHolder(ViewGroup parent) {
        return null;
    }

    @Override
    public int getAdapterItemCount() {
        return list != null ? list.size() : 0;
    }

    @Override
    public long generateHeaderId(int position) {
        return 0;
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, int position) {

    }

    @Override
    public RecyclerView.ViewHolder onCreateHeaderViewHolder(ViewGroup parent) {
        return null;
    }

    @Override
    public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int position) {

    }
}
